package com.jzoom.zoom.pay;

import java.net.URL;
import java.net.URLClassLoader;

public class PayClassLoader extends URLClassLoader {

	private ClassLoader parent;
	
	public PayClassLoader(URL[] urls, ClassLoader parent) {
		super(urls);
		this.parent = parent;
	}
	
	@Override
	protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {
		try {
			return super.loadClass(name, resolve);
		}catch (ClassNotFoundException e) {
			return parent.loadClass(name);
		}
	}


	
}
